project(concurrent)

file(GLOB sources ./*)
add_executable(${PROJECT_NAME}
        ${sources}
        )
target_link_libraries(${PROJECT_NAME}
        Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Concurrent
        )

cmake_path(GET CMAKE_CURRENT_SOURCE_DIR PARENT_PATH _parent_path)
cmake_path(GET _parent_path FILENAME _component)

install(TARGETS ${PROJECT_NAME}
        RUNTIME DESTINATION ${_component}
        COMPONENT ${_component}
        )